package model;

/**
 * a class that represent a frame of an ID3Tag
 * 
 *
 */
public class Frame {

	/*****************************
	 * MEMBER
	 *****************************/
	
	private int size;
	private byte[] data;
	
	/*****************************
	 * CONSTRUCTOR
	 *****************************/
	public Frame(int size, byte[] data) {
		this.size = size;
		this.data = data;
	}
	public Frame() {
		this.size = 0;
		this.data = null;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public void setData(byte[] data) {
		this.data = data;
	}
	/*****************************
	 * METHODS
	 *****************************/
	/**
	 * 
	 * @return the frame size inclusive header size
	 */
	public int getSize() {
		return size;
	}
	/**
	 * 
	 * @return the frame inclusive frame header as raw byte data
	 */
	public byte[] getData() {
		return data;
	}
}
